#include "ObjectPathUtils.h"
#include "Misc/Assert.h"


TVector<CString> WH::SplitObjectPath(const CString & InPath)
{
    return InPath.Split(ObjectPathSeparator);
}

CString WH::GetAssetObjectPath(const CString &InObjectPath)
{
    auto Paths = SplitObjectPath(InObjectPath);
    if (Paths.Num() < 2)
    {
        GASSERT(false, U"无法获取资产对象路径，根对象没有对应的资产对象");
        return U"";
    }
    return Paths[1];
}
